#coding=utf-8
from turtle import *
import turtle

# sides = eval(input("Enter a number of sides between 2 and 6: "))
# https://stackoverflow.com/a/17210073/6132577
sides = int(raw_input("Enter a number of sides between 2 and 6: "))

colors = ['red', 'purple', 'blue', 'green', 'yellow', 'orange' ]

speed(0)

t = turtle.Pen()
turtle.bgcolor('black')

for x in range(180):
	t.pencolor(colors[x%sides])
	t.forward(x*3/sides +x)
	t.left(360/sides +1)
	t.width(x*sides/200) #逐步增加宽度

turtle.done()
